﻿/// <reference path="jquery-1.7-vsdoc.js" />
/// <reference path="FormCheck.js" />

$(document).ready(function () {
    //    var callBack = $.Callbacks();
    //    callBack.add(alter1);
    //    callBack.add(alter2);
    //    alert(callBack.fired());
    //    callBack.fire("William");
    //    alert(callBack.fired());
    //    callBack.lock();
    //    callBack.fire();

    //    var check = $("#Text1").attr("check");
    //    alert(check);


    $("form").submit(function () {
        return checkFrom(this);
    });

    var noWord = /\W/gim;
    var num = /\d+/gim;
    //alert("helworld33%".search(noWord));
    var result = 0;
    $.each($("ds3fdds3v43dfsdd3dfsd2323dfsd3fddsfsf34dfs3rwf34ref5werf3rsf3rsdfrrfsdffsd".match(num)).filter(function (index) {
        return index < 100;
    })
    , function () {
        result = result + (this + "  ");
    });

    alert(result);








}
);

function alter1(str) {
    alert(str + 1);
}

function alter2(str) {
    alert(str + 2);
}